import Vue from 'vue'
 
import VueRouter  from 'vue-router'
Vue.use(VueRouter)

const routes = [ 
  {
    path: '/',
    component: () =>import('../components/register/index.vue')
  },//每一个对象就是一个路由
  {
    path: '/login',
    component: () =>import('../components/login/index.vue')
  }//每一个对象就是一个路由
]
const router = new VueRouter({
  routes//路由表  必写的
})


  export default router